package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.Device;

/**
 * 设备信息业务对象 device
 *
 * @author Lion Li
 * @date 2024-10-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Device.class, reverseConvertGenerate = false)
public class DeviceBo extends BaseEntity {

    /**
     * 设备ID
     */
    @NotNull(message = "设备ID不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 设备分组ID
     */
    @NotNull(message = "设备分组ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String groupId;

    /**
     * 设备编号
     */

    private String deviceNo;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String deviceName;


    private Long status;

    /**
     * 变量id
     */
    @NotNull(message = "变量id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long[] variableAssociation;

    private String address;
    private String remark;
    private String site;
    private Long collect;


}
